package models;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;


@Entity
public class Comment extends Model{
	
	public String code;
	
	public String content;
	
	public Date commentTime;
	
	@JoinColumn(name="users_id")
	@ManyToOne(cascade=CascadeType.ALL)
	public Users users;
	
	
	/**
	 * 支持数
	 */
	public int supportNumber;
	
	/**
	 * 反对数
	 */
	public int oppositionNumber;
	
	public int state;
}
